namespace UnityEngine
{
    internal static class ClassLibraryInitializer
    {
        static void Init()
        {
#if !UNITY_FLASH && !UNITY_WEBGL && !UNITY_WINRT
            UnityLogWriter.Init();
#endif

#if UNITY_STANDALONE || (WEBPLUG && !UNITY_NACL)
            if (Application.platform.ToString().Contains("WebPlayer"))
                System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.DefaultSurrogateSelector = new UnityEngine.Serialization.UnitySurrogateSelector();
#endif
        }
    }
}